<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>存放到git</title>
</head>
<style>
  body {
    margin: 0;
    background-color: RGBA(230,230,230,0.4);
  }

  header {
    height: 60px;
    background-color: #ffffff;
    display: flex;
    flex-shrink: 0;
    position: relative;
  }

  header div:nth-of-type(1) {
    width: 150px;
    height: 100%;
    line-height: 60px;
    text-align: center;
    font-size: 25px;
  }

  header div:nth-of-type(2) {
    width: 150px;
    height: 100%;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
  }

  header div:nth-of-type(2) img {
    height: 40px;
  }

  header div:nth-of-type(2) select {
    height: 20px;
    border: 0;
    color: darkgrey;
  }

  nav {
    height: 40px;
    width: 98%;
    margin: 10px auto;
    background-color: #ffffff;
    display: flex;
    flex-shrink: 0;
    align-items: center;
  }
  nav div:nth-of-type(1) {
    width: 40px;
    height: 22px;
    background-color: #eeeeee;
    border-radius: 15px;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    position: relative;
    margin: 0 10px 0 10px;
  }
  nav div:nth-of-type(1) button {
    width: 18px;
    height: 18px;
    background-color: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    border: 0;
    transition: all 0.5s ease;
  }
  nav div:nth-of-type(2) {
    color: darkgrey;
  }
  main {
    width: 98%;
    height: 450px;
    margin: auto;
  }
  .import {
    display: flex;
    justify-content:space-between;
  }

  .first {
    width: 49.5%;
    border: 1px solid #eeeeee;
    border-radius: 5px;
    box-shadow: 1px 5px 10px #eeeeee;
    background-color: #ffffff;
    margin-bottom: 10px;

  }

  .first .memory {
    height: 30px;
    width: 100%;
    box-sizing: border-box;
    padding-left: 10px;
    border-bottom: 1px solid silver;
    line-height: 30px;
  }
  main ul {
     margin:0;
    padding: 0;
  }
  .memory p {
    margin: 0;
    font-size: 20px;
  }

  li {
    display: flex;
    list-style: none;
    line-height: 18px;
    align-items: center;
    font-size: 16px;
    color: darkgrey;
  }

  label {
    width: 100px;
    text-align: right;
  }

  footer {
    width: 98%;
    height: 150px;
    background-color: #ffffff;
    margin: 20px auto 0 auto;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  footer div:nth-of-type(1) {
    height: 30px;
    border-bottom: 1px solid #eeeeee;
  }

  footer div:nth-of-type(1) span {
    line-height: 30px;
    font-size: 20px;
    font-weight: 500;
    margin-left: 10px;
  }

  table {
    width: 98%;
    margin: 0px auto;
  }

  tr {
    height: 30px;
    line-height: 30px;
  }

  td {
    border-bottom: 1px solid #eeeeee;
  }
</style>
<body>
<header>
  <div>服务监测</div>
  <div>
    <img src="./man.png">
    <select>
      <option value="1">超级管理员</option>
    </select>
  </div>
</header>
<nav>
  <div>
    <button value="left"></button>
  </div>
  <div>已关闭自动刷新</div>
</nav>
<main>
  <div class="import">
    <div class="first">
      <div class="memory">
        <p>CPU</p>
      </div>
      <ul>
        <li>
          <label>物理核数</label>
          <p></p>
        </li>
        <li>
          <label>逻辑核数</label>
          <p></p>
        </li>
        <li>
          <label>当前使用率</label>
          <p></p>
        </li>
        <li>
          <label>当前空闲率</label>
          <p></p>
        </li>
      </ul>
    </div>
    <div class="first">
      <div class="memory">
        <p>内存</p>
      </div>
      <ul>
        <li>
          <label>总空间</label>
          <p></p>
        </li>
        <li>
          <label>空闲时间</label>
          <p></p>
        </li>
        <li>
          <label>已用空间</label>
          <p></p>
        </li>
        <li>
          <label>使用率</label>
          <p></p>
        </li>
      </ul>
    </div>
  </div>
  <div class="import">
    <div class="first">
      <div class="memory">
        <p>JVM</p>
      </div>
      <ul>
        <li>
          <label>安装路径</label>
          <p></p>
        </li>
        <li>
          <label>版本</label>
          <p></p>
        </li>
        <li>
          <label>启动时间</label>
          <p></p>
        </li>
        <li>
          <label>运行时长</label>
          <p></p>
        </li>
        <li>
          <label>总空间</label>
          <p></p>
        </li>
        <li>
          <label>空闲空间</label>
          <p></p>
        </li>
        <li>
          <label>已用空间</label>
          <p></p>
        </li>
        <li>
          <label>使用率</label>
          <p></p>
        </li>
      </ul>
    </div>
    <div class="first">
      <div class="memory">
        <p>服务器</p>
      </div>
      <ul>
        <li>
          <label>操作系统</label>
          <p></p>
        </li>
        <li>
          <label>系统版本</label>
          <p></p>
        </li>
        <li>
          <label>系统架构</label>
          <p></p>
        </li>
        <li>
          <label>IP地址</label>
          <p></p>
        </li>
        <li>
          <label>MAC地址</label>
          <p></p>
        </li>
        <li>
          <label>服务器时间</label>
          <p></p>
        </li>
      </ul>
    </div>
  </div>
</main>
<footer>
  <div>
    <span>磁盘信息</span>
  </div>
  <table>
    <tr>
      <td>磁盘名称</td>
      <td>磁盘路径</td>
      <td>文件系统</td>
      <td>总空间</td>
      <td>可用空间</td>
      <td>已用空间</td>
      <td>已用占比</td>
      <td>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</td>
    </tr>
    <div class="data">
    </div>
  </table>
</footer>
<script>
  function butt() {
    let button=document.querySelector("nav button")
    button.addEventListener('click',function () {
      let vl=button.getAttribute('value')
      if (vl=='left'){
        document.querySelector('nav button').style.left='initial'
        document.querySelector('nav button').style.right='2px'
        document.querySelector('nav div:nth-of-type(1)').style.backgroundColor='RGB(70,121,255)'
        button.setAttribute('value','right')
      }
      if (vl=='right'){
        document.querySelector('nav button').style.left='2px'
        document.querySelector('nav div:nth-of-type(1)').style.backgroundColor='#eeeeee'
        button.setAttribute('value','left')
      }
    })
  }
  butt()
</script>
</body>
</html>